package controllers

import (
	"gitee.com/tangrx/go-admin/app"
	"gitee.com/tangrx/go-admin/utils/config"
	"github.com/gin-gonic/gin"
	"net/http"
)

func init() {
	app.GET("/ping", func(c *gin.Context) {
		c.JSON(200, gin.H{
			"eee": config.GetStr("db"),
		})
	})
	app.GET("/", func(c *gin.Context) {
		c.String(http.StatusOK, "Hello dddd")
	})
}
